package com.supermarket.manage.common.dto.prod.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-03-09 18:13
 **/
@Data
@ApiModel("ProdPageParams:商品分页、条件查询数据对象")
public class ProdPageParams implements Serializable {

    private static final long serialVersionUID = -8922418976980562133L;
    /**
     * 页码
     */
    @ApiModelProperty(value = "页码")
    @NotNull(message = "页码不能为空")
    private Integer page;

    /**
     * 每页条目数
     */
    @ApiModelProperty(value = "每页条目数")
    @NotNull(message = "每页条目数不能为空")
    private Integer size;

    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    @NotBlank(message = "客户id不能为空")
    private String buyerId;

    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    private String pname;

    /**
     * 商品分类id
     */
    @ApiModelProperty(value = "商品分类id")
    private String cid;

    /**
     * 添加时间前缀
     */
    @ApiModelProperty(value = "添加时间前缀 yyyy-MM-dd HH:mm:ss")
    private String beginTime;

    /**
     * 添加时间后缀
     */
    @ApiModelProperty(value = "添加时间后缀 yyyy-MM-dd HH:mm:ss")
    private String endTime;
}
